/**
 * $ HEADER: $
 */
package net.frankish.moviebank.front;

import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;

import javax.swing.JPanel;

@Deprecated
public class ImagePanel extends JPanel {
	/**
	 *
	 */
	private Image image ;
	/**
	 * @param splash
	 */
	public ImagePanel(Image image) {
		this.image = image;
	}
	private static final long serialVersionUID = 2872553044274875801L;
	protected void paintComponent(Graphics g) {
		Graphics2D g2 = (Graphics2D) g;
	    if(image != null) {
	    	g2.drawImage(image, 0, 0, null);
	    }
	}
	public Image getImage() {
		return image;
	}
	public void setImage(Image image) {
		this.image = image;
	}
}